<?php
header('Content-type:text/html;charset=utf-8');//设置编码格式
session_start();
include_once 'dbconfig.php';
include_once 'common.php';


if ($_GET) {
    if (isset($_GET['getType']) && $_GET['getType'] == 'getConfirm') {
        $idStr = implode($_GET['ids'], ',');
        if (isset($_SESSION['loginUserName'])) {
            $name = $_SESSION['loginUserName'];
        } else {
            $msg = ['msg' => '请先登录！', 'status' => 0];
            responseEvent($msg);
        }
        $str = 'select s.num,s.color as scolor, s.id as shopid,p.* from shop_cart as s JOIN product as p on s.pro_id =p.id where s.username="' . $name . '" and s.status=1 and s.id in (' . $idStr . ')';
        judge($str);
    }
}